package spring_learn.a08.scope_resolve;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;


@Component
public class Bean1 {

    @Autowired
    private Bean2 bean2;


    @Autowired
    private Bean3 bean3;


    @Autowired
    @Lazy
    private bean4 bean4;

    public void setBean2(Bean2 bean2) {
        this.bean2 = bean2;
    }

    public Bean2 getBean2() {
        return bean2;
    }

    public Bean3 getBean3() {
        return bean3;
    }

    public void setBean3(Bean3 bean3) {
        this.bean3 = bean3;
    }

    public bean4 getBean4() {
        return bean4;
    }
}
